<style tyle="text/css">
    .mt10 {
      margin-top: 10px
    }
    .dropdown-menu .p5_15:hover {
      background-color: #edf1f2 !important;
      background-image: none;
      filter: none;
      cursor: pointer;
    }
    .p5_15 {
      padding: 5px 15px;
    }
    .dropdown-btn {
      float: left;
      margin-top: 3px;
    }
    .dropdown-menu li {
      white-space: nowrap;
    }
    .quick-btn {
      padding-top: 8px;
    }
    .font-color {
      color: #428bca;
    }
    .red_font {
      color: #f00;
    }
    .chechbox-style {
      width: 14px;
      font-size: 17px;
      padding-top: 1px;
    }
    .role_style {
      margin-bottom:2px;
      margin-right:5px;
      width:110px;
    }
    .yuio {
      padding-bottom: 5px;
      padding-top: 0px;
      padding-left: 0px;
    }
  </style>

<div class="col-sm-12 mt20">

    <div class="panel panel-default">

        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="col-xs-2 text-center">活动ID/名称
                                <!-- <div class="dropdown-btn">活动ID/名称</div> 
                                 <div class="btn-group dropdown" dropdown="" ng-class="{'open': filters.open1}">
                                    <button class="btn btn-default btn-xs" style="width: 24px;" ng-click="filters.open1 = !filters.open1 ; filters.open2 = false">
                                      <i class="fa fa-filter" ng-show="!filters.open1"/>
                                      <i class="glyphicon glyphicon-filter" ng-show="filters.open1"/>
                                    </button>
                                    <ul class="dropdown-menu " >
                                      <li class="p5_15" ng-click="filterType(item)" ng-repeat="item in filters.list1">
                                        <i class="fa fa-check-square chechbox-style" ng-show="item.show"/>
                                        <i class="fa fa-square-o chechbox-style" ng-show="!item.show"/> {{item.label}}
                                      </li>
                                      <li class="text-center" style="padding-top: 3px">
                                        <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag(filters.list1, true)">全选</button>
                                        <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag(filters.list1, false)">清空</button>
                                        <button class="btn btn-default btn-xs" ng-click="filters.open1 = false">关闭</button>
                                      </li>
                                    </ul>
                                  </div> -->

                        </th>
                        <th class="col-xs-2 text-center">活动数量</th>
                        <th class="col-xs-2 text-center">活动规则</th>
                        <th class="col-xs-2 text-center">领取规则</th>
                        <th class="col-xs-2 text-center">
                                <div class="dropdown-btn">活动状态</div>
                                <div class="btn-group dropdown" dropdown="" ng-class="{'open': filters.open2}">
                                    <button class="btn btn-default btn-xs" style="width: 24px;" ng-click="filters.open2 = !filters.open2 ; filters.open1 = false">
                                      <i class="fa fa-filter" ng-show="!filters.open2"/>
                                      <i class="glyphicon glyphicon-filter" ng-show="filters.open2"/>
                                    </button>
                                    <ul class="dropdown-menu " >
                                      <li class="p5_15" ng-click="filterType1(item)" ng-repeat="item in filters.list2">
                                        <i class="fa fa-check-square chechbox-style" ng-show="item.show"/>
                                        <i class="fa fa-square-o chechbox-style" ng-show="!item.show"/> {{item.label}}
                                      </li>
                                      <li class="text-center" style="padding-top: 3px">
                                        <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag1(filters.list2, true)">全选</button>
                                        <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag1(filters.list2, false)">清空</button>
                                        <button class="btn btn-default btn-xs" ng-click="filters.open2 = false">关闭</button>
                                      </li>
                                    </ul>
                                  </div>
                        </th>
                        <th class="col-xs-2 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="activity in activityList | filter : {'show': true}">
                        <td class="text-center">
                            {{activity.subsidy_id}}
                            <br />{{activity.subsidy_name}}
                        </td>
                        <td class="text-center">
                            总量：{{activity.subsidy_total}}{{activity.subsidy_unit == '1'? '人/次': '金额/分'}}
                            <br />余量：{{activity.subsidy_num}}{{activity.subsidy_unit == '1'? '人/次': '金额/分'}}
                            <br />最大次数：{{activity.subsidy_type_check_flag == '1'? '不校验': '校验'}}
                        </td>
                        <td class="text-center">
                            校验标识：
                            <span ng-if="activity.subsidy_check_flag == '1'">身份证</span>
                            <span ng-if="activity.subsidy_check_flag == '2'">用户id</span>
                            <span ng-if="activity.subsidy_check_flag == '3'">openid</span>
                            <br />活动类型：
                            <span ng-if="activity.subsidy_type == '1'">按机构分配</span>
                            <span ng-if="activity.subsidy_type == '2'">不按机构分配</span>
                        </td>
                        <td class="text-center">
                            单次领取数量：{{activity.subsidy_num_once}}
                            <br />补贴活动最大领取次数：{{activity.subsidy_nums_max}}
                        </td>
                        <td class="text-center">
                            <span ng-if="activity.subsidy_state == '1'">未开始</span>
                            <span ng-if="activity.subsidy_state == '2'">进行中</span>
                            <span ng-if="activity.subsidy_state == '3'">已结束</span>
                        </td>
                        <td class="text-center">
                            <button type="button" class="btn btn-success btn-xs" ng-if="activity.subsidy_state == '1'" ng-click="start(activity)">开始</button>
                            <button type="button" class="btn btn-success btn-xs" ng-if="activity.subsidy_state == '3'" ng-click="init(activity)">初始化</button>
                            <button type="button" class="btn btn-danger btn-xs" ng-if="activity.subsidy_state == '2'" ng-click="end(activity)">结束</button>
                            <button type="button" class="btn btn-info btn-xs" ng-click="edit(activity)">修改</button>
                            <button type="button" class="btn btn-info btn-xs" ng-if="activity.subsidy_type == '1'" ng-click="company(activity)">机构信息</button>
                            <button type="button" class="btn btn-info btn-xs" ng-click="city(activity)">城市信息</button>
                            <button type="button" class="btn btn-info btn-xs" ng-click="userList(activity)">用户</button>
                            <button type="button" class="btn btn-info btn-xs" ng-click="noAllow(activity)">不允许</button>
                            <button type="button" class="btn btn-info btn-xs" ng-click="updateNum(activity)" ng-if="activity.subsidy_type == '2'">设置数量</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>